// 选项卡
let recommendItem=document.querySelectorAll('.recommend-item')
let recommends=document.querySelectorAll('.recommends')
console.log(recommends);
let index = 0
recommendItem.forEach(function(v,i){
    v.addEventListener('click',function(){
        recommendItem[index].className=''
        recommends[index].style.display='none'

        this.classList.add('on')
        recommends[i].style.display='block'
        index=i
    })
})